package cn.tedu.mall1.personal.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class PersonalDTO {
    @ApiModelProperty(value = "用户id")
    Long id;
    @ApiModelProperty(value = "用户名称")
    String username;
    @ApiModelProperty(value = "用户性别")
    String gender;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "用户生日")
    Date birthday;
    @ApiModelProperty(value = "用户头像")
    String imgUrl;
}
